/* awebjfif.awebrx - Install or uninstall the AWeb JFIF plugin */ options results if left(address(),5)~="AWEB." then do ports=show("P") parse var ports dummy "AWEB." portnr . if portnr="" then do address command "run AWeb3:AWeb-II" address command "WaitForPort AWEB.1" portnr=1 end address value "AWEB."portnr 'get activeport' address value result end parse arg args parse source dummy1 dummy2 called . i=lastpos(called,'/') if i==0 then i=lastpos(called,':') if i>0 then path=left(called,i) else path='' if args='' then do if ~open(tf,"T:awebjfifsetup.html","W") then exit call writeln tf,"
" call writeln tf," |
" call writeln tf," |
Back to documentation" call close tf 'open "file:///T:awebjfifsetup.html" reload' 'wait "file:///T:awebjfifsetup.html"' 'allowcmd' address command 'delete T:awebjfifsetup.html quiet' end else do ext="jpg jpeg jfif" rest=";" 'getcfg MIME stem m' do i=1 to m.0 if upper(left(m.i.value,11))="IMAGE/JPEG;" then do parse var m.i.value type ";" ext ";" action ";" rest leave end end if upper(left(args,9))="DEINSTALL" then do mime="IMAGE/JPEG;"ext";;"rest end else do progress="" defprogress="4" dither="2" grayscale="" maxmem="1024" lowpri="" save="" do while args~="" parse var args nextarg args interpret nextarg end if progress="" then progress=defprogress mime="IMAGE/JPEG;"ext";A;AWebPath:awebplugin/awebjfif.awebplugin;PROGRESS="progress" DITHER="dither" "grayscale" MAXMEM="maxmem lowpri end 'setcfg MIME "'mime'" ADD' if upper(save)="YES" then do 'savesettings' end 'open "file:///AWebPath:awebplugin/docs/awebjfif.html"' end exit